package com.his.back.service;

import com.his.back.pojo.drug;
import com.his.back.pojo.patient_drug;
import com.his.back.pojo.patient_drugKey;
import org.springframework.stereotype.Service;

import java.text.ParseException;
import java.util.List;

@Service
public interface DrugService {
    List<drug> search(String query);
    int add(drug record);
    int change(drug record);
    int delete(Integer record);
    List<drug> patientOpen(String id,String date) throws ParseException;
    List<drug> patientCancel(String id,String date) throws ParseException;
    int update(patient_drug record);
    patient_drug find(patient_drugKey key);

}
